<?php

	/**
    * @framework : My Framework
    *
    * @author: fatangel26@gmail.com - Nguyễn Bảo Trung - cuongnc.it659@gmail.com - Nguyễn Chí Cường.
    *
    */

	class model_cms extends my_model
	{
		protected $_table;

		public function __construct()
        {
            parent::__construct();
            $this->_table = "tbl_cms";
        }

        public function getIntro()
		{
			$this->where(array('id'=>1));

			$this->get($this->_table);

			if($this->num_rows() > 0)
				return $this->fetch_one();
			return FALSE;
		}

        public function getFooter()
		{
			$this->where(array('id'=>2));

			$this->get($this->_table);

			if($this->num_rows() > 0)
				return $this->fetch_one();
			return FALSE;
		}

        public function getBottomSlide()
        {
            $this->get('tbl_link');

            if($this->num_rows() > 0)
                return $this->fetch_all();
            return FALSE;
        }



	}


    /*End of layout.php*/
    /*Location: my_framework/controllers/layout.php */